package cn.smxy.comment.mapper;

import cn.smxy.dto.CommentCountDto;
import cn.smxy.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 获取各作品评论数
     * @return
     */
    List<CommentCountDto> getCount();

}
